package com.xb.loan.util.model;

import java.io.Serializable;

/**
 * Created by Zouxf on 2017/5/18.
 */
public class PageQuery implements Serializable {
    private int page = 1;
    private int pageSize = 20;

    public int getStartLimit() {
        return (page - 1) * pageSize;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        if (page < 1) {
            page = 1;
        }
        this.page = page;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
